package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.SysDict;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysDictMapper extends K2Mapper<SysDict> {

    int deleteById(Long id);

    SysDict get(Long id);

    List<SysDict> selectList(SysDict cond);

    @Select("SELECT DISTINCT type FROM sys_dict")
    List<String> selectTypes();

}